package com.onec.service.route.service.impl;

import com.onec.service.route.dao.TradeRuleRepository;
import com.onec.service.route.entity.TradeRuleInfo;
import com.onec.service.route.service.TradeRuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author onec
 */
@Service
public class TradeRuleServiceImpl implements TradeRuleService {


    @Autowired
    TradeRuleRepository tradeRuleRepository;

    @Override
    public List<TradeRuleInfo> getTradeRuleList(long tradeConfigId) {
        return tradeRuleRepository.findAllByTradeConfigId(tradeConfigId);
    }
}
